@extends('home.m.m2.public.public')

@section('content')
    <div class="index">
        <section>
            <a href="tel:{{ config('set.web_phone') }}" class="link_tel icon-phone"
               style="background:#999a9e;">{{ config('set.web_phone') }}</a>
        </section>
        <section style="margin:5px 0 7px 0;">
            <section style="padding:0px; margin:0px;">
                <ul class="list_font">
                    <li>
                        <a href="{{ route('page',['about',8]) }}">
                            <div style="background-color:#74cdd5;"><span class="icon-desktop"></span></div>
                            <div>
                                <p>关于我们</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="{{ route('page',['about',9]) }}">
                            <div style="background-color:#65c59f;"><span class="icon-globe"></span></div>
                            <div>
                                <p>联系我们</p>
                            </div>
                        </a>
                    </li>
                </ul>
            </section>
            <div class="clear"></div>
            <section style="padding:0px; margin:0px;">
                <ul class="list_font">
                    <li>
                        <a href="{{ route('sort_all','product') }}">
                            <div style="background-color:#01a4b5;"><span class="icon-shopping-cart"></span></div>
                            <div>
                                <p>产品展示</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="{{ route('sort_all','new') }}">
                            <div style="background-color:#029a67;"><span class="icon-trophy"></span></div>
                            <div>
                                <p>新闻中心</p>
                            </div>
                        </a>
                    </li>
                </ul>
            </section>
            <div class="clear"></div>
            <section style="padding:0px; margin:0px;">
                <ul class="list_font">
                    @foreach($sorts['product'] as $k => $value)
                        @if($k <2)
                            <li>
                                <a href="{{ route('sort',['product',$value['id']]) }}">
                                    <div style="background-color:#008c9b;"><span class="icon-edit"></span></div>
                                    <div>
                                        <p>{{ $value['name'] }}</p>
                                    </div>
                                </a>
                            </li>
                        @endif
                    @endforeach
                </ul>
            </section>
            <div class="clear"></div>
        </section>
    </div>
@endsection